package com.allianz.frame.dao.impl;
import java.sql.Connection;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.executor.BatchResult;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.session.ResultHandler;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSession;
import com.allianz.frame.dao.IBaseDao;
@SuppressWarnings("all")
public class BaseDaoMyBatis implements IBaseDao{
	private SqlSession sqlSession;
	public SqlSession getSqlSession() {
		return sqlSession;
	}
	public void setSqlSession(SqlSession sqlSession) {
		this.sqlSession = sqlSession;
	}
	public void commit(){
		sqlSession.commit();
	}
	public void commit(boolean b){
		sqlSession.commit(b);
	}
	public int delete(String param){
		return sqlSession.delete(param);
	}
	public int delete(String param,Object obj){
		return sqlSession.delete(param,obj);
	}
	public List<BatchResult> flushStatements(){
		return sqlSession.flushStatements();
	}
	public Connection getConnection(){
		return sqlSession.getConnection();
	}
	public Configuration getConfiguration(){
		return sqlSession.getConfiguration();
	}
	public <T> T getMapper(Class<T> clazz){
		return sqlSession.getMapper(clazz);
	}
	public int insert(String flag){
		return sqlSession.insert(flag);
	}
	public int insert(String flag,Object obj){
		return sqlSession.insert(flag,obj);
	}
	public void rollback() {
		sqlSession.rollback();
	}
	public void rollback(boolean flag) {
		sqlSession.rollback(flag);
	}
	public void select(String s, ResultHandler rh) {
		sqlSession.select(s,rh);
	}
	public void select(String s, Object o, ResultHandler rh) {
		sqlSession.select(s,o,rh);
	}
	public void select(String s, Object o, RowBounds rb,ResultHandler rh) {
		sqlSession.select(s,o,rb,rh);
	}
	public <E> List<E> selectList(String s) {
		return sqlSession.selectList(s);
	}
	public <E> List<E> selectList(String s, Object o) {
		return sqlSession.selectList(s,o);
	}
	public <E> List<E> selectList(String s, Object o, RowBounds rb) {
		return sqlSession.selectList(s,o,rb);
	}
	public <K, V> Map<K, V> selectMap(String s1,String s2) {
		return sqlSession.selectMap(s1,s2);
	}
	public <K, V> Map<K, V> selectMap(String s1, Object o, String s2) {
		return sqlSession.selectMap(s1,o,s2);
	}
	public <K, V> Map<K, V> selectMap(String s1, Object o, String s2,RowBounds rb) {
		return sqlSession.selectMap(s1,o,s2,rb);
	}
	public <T> T selectOne(String s) {
		return sqlSession.selectOne(s);
	}
	public <T> T selectOne(String s, Object o) {
		return sqlSession.selectOne(s,o);
	}
	public int update(String s) {
		return sqlSession.update(s);
	}
	public int update(String s, Object o) {
		return sqlSession.update(s,o);
	}
}